package com.iswust.visual.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Set;

/**
 * @author liushuai
 * @create 2023-02-19 23:16
 */
@Data
@AllArgsConstructor
public class SankeyVo {
    Set<Name> data;
    List<Link> links;

    @Data
    @AllArgsConstructor
    @EqualsAndHashCode
    public static class Name {
        private String name;
    }

    @Data
    @AllArgsConstructor
    public static class Link {
        private String source;
        private String target;
        private Integer value;
    }
}
